<template>

  <div class="xinxi_box">
    <el-button class="new_btn" type="primary" @click="handleNew"
      >新增</el-button
    >
    <el-table :data="studentInfo" border style="width: 100%">
      <el-table-column prop="name" label="姓名" />
      <el-table-column prop="sex" label="性别" />
      <el-table-column prop="age" label="年龄" />
      <el-table-column fixed="right" label="操作">
        <template #default="{ row }">
          <el-button type="text" size="small" @click="handleDetail(row)"
            >查看</el-button
          >
          <el-button type="text" size="small" @click="handleEdit(row)"
            >编辑</el-button
          >
          <el-button type="text" size="small" @click="handleDel(row)"
            >删除</el-button
          >
        </template>
      </el-table-column>
    </el-table>
    <!-- 新建/编辑弹框 -->
    <Dialog
      v-if="dialogShow"
      v-model:dialogShow="dialogShow"
      :rowInfo="rowInfo"
      :title="title"
      :arrayNum="studentInfo.length"
      @addRow="addRow"
      @editRow="editRow"
    />
    <!-- 详情弹窗 -->
    <Detail v-if="detailShow" :rowInfo="rowInfo" @closeDetail="closeDetail" />

  <div class="box">
    logistics

  </div>
</template>

<script>
  export default {
    name: 'WorkspaceJsonLogistics',

    data() {
      return {}
    },

    mounted() { },

    methods: {},
  }
</script>

<style  scoped>
.xinxi_box {
  padding: 20px;
  margin: 50px;
}
 .new_btn {
    margin-bottom: 10px;
  }
  :deep( .el-table__cell) {
    text-align: center;
  }

</style>
